<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #bx_p {color: red}
        .c {color: blue}
        h1,#bx_p,.c{background-color: azure}
        /*属性选择器*/
        input[type="text"]{color: red}
        input[type="password"]{color:green}
        *{border: 1px solid darkred}
    </style>
</head>
<body>
<input type="text">
<input type="password">
<h1>这是h1</h1>
<p id="bx_p">冰箱</p>
<p class="c">洗衣机</p>
<div>香蕉</div>
<div class="c">苹果</div>
</body>
</html>